package com.wuhuahe.learning.lagou.cloud.gateway.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

@Configuration
@RefreshScope
@ConfigurationProperties(prefix = "gateway.ip")
public class GatewayConfig {

    private int latestMinutes;
    private int maxCounts;

    public int getLatestMinutes() {
        return latestMinutes;
    }

    public void setLatestMinutes(int latestMinutes) {
        this.latestMinutes = latestMinutes;
    }

    public int getMaxCounts() {
        return maxCounts;
    }

    public void setMaxCounts(int maxCounts) {
        this.maxCounts = maxCounts;
    }
}
